import updateButtonStatus from "./updateButtonStatus";
import handleAllpks from "./handleAllpks";

export default function clearMainTableData() {
    handleAllpks.set('');
    this.setState({
        pageInfo: {
            pageSize: 10,
            pageIndex: 1,
            total: 0,
            totalPage: 1
        }
    }, () => {
        updateButtonStatus.call(this);
    });
    this.props.editTable.setTableData('blacklist', {rows: []});
}
